package com.baizhi.dao;

import com.baizhi.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDAO {
    List<Role> selectAll();
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    Role selectAllResource(@Param("name") String roleName);
}